package GameLogic
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.MouseEvent;
	public class SpriteBtn extends Sprite
	{
		public var Img:Bitmap;
		public function SpriteBtn(_bmp:BitmapData)
		{
			Img = new Bitmap(_bmp);
			this.addChild(Img);
			this.addEventListener(MouseEvent.MOUSE_OVER, function(e:Event):void
			{
				Img.alpha = 0.8;
				Img.x -= 20;
			});
			this.addEventListener(MouseEvent.MOUSE_OUT, function(e:Event):void
			{
				Img.alpha = 1;
				Img.x += 20;
			});
		}
		
		
	}
}